package com.spring.context.event;

import com.spring.context.ApplicationContext;
import com.spring.context.ApplicationEvent;

/**
 * @Description: This is a sample class.
 * @Author: Simon
 */
public abstract class ApplicationContextEvent extends ApplicationEvent {

    public ApplicationContextEvent(ApplicationContext source) {
        super(source);
    }

    public final ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }

}
